bitkeeper revision 1.355 (3f13daaex8SDyv1qBoqiITvhXIi0nA)
authorrac61@labyrinth.cl.cam.ac.uk <rac61@labyrinth.cl.cam.ac.uk>
Tue, 15 Jul 2003 10:42:54 +0000 (10:42 +0000)
committerrac61@labyrinth.cl.cam.ac.uk <rac61@labyrinth.cl.cam.ac.uk>
Tue, 15 Jul 2003 10:42:54 +0000 (10:42 +0000)
Stop new-domain code from trying to resolve ip to host; just take given hostname string.

tools/control/src/org/xenoserver/control/CommandDomainNew.java

index 4729cab55a8f02290084c21712d7ac3ac4c6170a..8bb0c9be4435189c3146ae5af1631fb2112e4723 100644 (file)
@@ -196,7 +196,7 @@ public class CommandDomainNew extends Command {
                 if (vifs > 0) {
                     domain_ip =
                         InetAddressPattern.parse(nw_ip).resolve(domain_id);
-                    if (nw_host == null) {
+                 /*   if (nw_host == null) {
                         try {
                             nw_host =
                                 InetAddress.getByName(domain_ip).getHostName();
@@ -204,7 +204,7 @@ public class CommandDomainNew extends Command {
                             nw_host = "" + nw_ip;
                         }
 
-                    }
+                    }*/
                     bargs =
                         ("ip="
                             + domain_ip